#!/usr/bin/env bash
# 将执行目录移动到 当前文件所在目录
cd `dirname $0`

set -eu

version=4.13
wget -O proxychains-ng-${version}.tar.gz https://github.com/rofl0r/proxychains-ng/archive/v${version}.tar.gz
tar xf proxychains-ng-${version}.tar.gz


(cd proxychains-ng-${version}
 ./configure
 make
 make install
 [[ -f /etc/proxychains.conf ]] || cp src/proxychains.conf /etc/proxychains.conf
)

rm -rf proxychains-ng-${version}.tar.gz proxychains-ng-${version}

cd -
